import request from '@/utils/request'
// 轮播图接口:
export function getSliders() {
	return request({
		url: '/api/slider/getSliders',
	})
}

// 获取一级分类
export function getFirstCategorys() {
	return request({
		url: '/api/course/category/getFirstCategorys',
	})
}

// 获取二级分类
export function getSecondCategorys(params) {
	return request({
		url: '/api/course/category/getSecondCategorys',
		params
	})
}

// 获取课程
export function courseSearch(data) {
	return request({
		url: '/api/course/search',
		method: 'post',
		data
	})
}